package cn.com.nes.site.entity.em.ctce;

/**
 * 围墙厚度
 */
public enum GnfsEnum {
    O("01", "集中"), T("02", "分户");

    private final String code;

    private final String description;

    GnfsEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public static GnfsEnum getByCode(String code) {
        for (GnfsEnum a : GnfsEnum.values()) {
            if (a.getCode().equals(code)) {
                return a;
            }
        }
        return null;
    }

    public static GnfsEnum getByDescription(String description) {
        for (GnfsEnum a : GnfsEnum.values()) {
            if (a.getDescription().equals(description)) {
                return a;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
